/*
 * File:   BatchMergeAboutDlg.cpp
 * Author: Morpheus
 *
 * Created on 24 juin 2013, 13:55
 */

#include <QtCore/qcoreapplication.h>
#include <QtCore/qfile.h>
#include <QtCore/qiodevice.h>


#include "BatchMergeAboutDlg.h"

BatchMergeAboutDlg::BatchMergeAboutDlg(QWidget* parent)
 : QDialog(parent) {
    widget.setupUi(this);
    
    widget.labelAppName->setText( qApp->applicationName() );
    widget.labelAppVersion->setText( qApp->applicationVersion() );
    widget.labelAppOrganization->setText( qApp->organizationName() );
    widget.labelAppDomain->setText( qApp->organizationDomain() );
    {
        QFile f(":/res/about_todo.txt");
        if(f.open(QIODevice::ReadOnly | QIODevice::Text)){
            QString text = QString::fromUtf8(f.readAll());
            widget.textEditTodo->setPlainText(text);
        }
    }
    {
        QFile f(":/res/about_func.txt");
        if(f.open(QIODevice::ReadOnly | QIODevice::Text)){
            QString text = QString::fromUtf8(f.readAll());
            widget.textEditFunc->setPlainText(text);
        }
    }
    {
        QFile f(":/res/about_bug.txt");
        if(f.open(QIODevice::ReadOnly | QIODevice::Text)){
            QString text = QString::fromUtf8(f.readAll());
            widget.textEditBug->setPlainText(text);
        }
    }
}

BatchMergeAboutDlg::~BatchMergeAboutDlg() {
}
